Skip to content

[Execution Engine] Batch edit all assets fails with a lot of items #1557

Merged
lukmzig merged 26 commits into2025.4from
1539-execution-engine-batch-edit-all-assets-fails-with-a-lot-of-items
Apr 21, 2026
Merged

[Execution Engine] Batch edit all assets fails with a lot of items #1557
lukmzig merged 26 commits into2025.4from
1539-execution-engine-batch-edit-all-assets-fails-with-a-lot-of-items

Conversation

@lukmzig
Copy link
Copy Markdown
Contributor

@lukmzig lukmzig commented Nov 26, 2025

Changes in this pull request

Resolves #1539

Additional info

Batch patch endpoints were adapted so they process each item in a separate instance of a step.
Relevant endpoints were changed as well, they accept only 1 folder per request and the folder id parameter was moved to the path.
Affected endpoints:

  • /pimcore-studio/api/assets/folder => /pimcore-studio/api/assets/folder/{id}
  • /pimcore-studio/api/data-objects/folder => /pimcore-studio/api/data-objects/folder/{id}

Export endpoints were changed similarly as well. However, we had to find a different approach here as the processing of the items has to be done sequentially to preserve the order of the exported elements. Because of this, we had to split the batch export (folder export) for both XLSX and CSV into 2 jobs.
Important change here is, that the initial job has a jobRunChildId which then collects all data in separate steps and creates an export file. For downloading the export file you need to therefore pass jobRunChildId and NOT original jobRunId!
Relevant endpoints were changed as well, they accept only 1 folder per request and the folder id parameter was moved to the path.
Affected endpoints:

  • /pimcore-studio/api/export/csv/folder => /pimcore-studio/api/export/csv/folder/{id}
  • /pimcore-studio/api/export/xlsx/folder => /pimcore-studio/api/export/xlsx/folder/{id}

Furthermore, classId was added as a required parameter for selected elements exports, when exporting data-object elements. This was already the case for folder exports

Affected endpoints:

  • /pimcore-studio/api/export/csv
  • /pimcore-studio/api/export/xlsx

@lukmzig lukmzig added this to the next milestone Nov 26, 2025
@lukmzig lukmzig self-assigned this Nov 26, 2025
@mcop1 mcop1 marked this pull request as ready for review November 26, 2025 16:40
@lukmzig
Copy link
Copy Markdown
Contributor Author

lukmzig commented Dec 1, 2025

Waiting for FE adjustments and can be merged after

…ails-with-a-lot-of-items

# Conflicts:
#	src/Asset/ExecutionEngine/AutomationAction/Messenger/Handler/ExportDataCollectionHandler.php
#	src/Asset/ExecutionEngine/AutomationAction/Messenger/Handler/ExportFolderDataCollectionHandler.php
#	src/DataObject/ExecutionEngine/AutomationAction/Messenger/Handler/ExportDataCollectionHandler.php
#	src/DataObject/ExecutionEngine/AutomationAction/Messenger/Handler/ExportFolderDataCollectionHandler.php
#	src/Grid/Service/GridService.php
#	src/Grid/Service/GridServiceInterface.php
@martineiber martineiber modified the milestones: 0.12.9, next Dec 5, 2025
@martineiber martineiber modified the milestones: 0.12.18, next Dec 17, 2025
@martineiber martineiber modified the milestones: 0.13.20, next Jan 20, 2026
@martineiber martineiber modified the milestones: 0.14.19, next Feb 18, 2026
…ails-with-a-lot-of-items

# Conflicts:
#	src/Asset/ExecutionEngine/AutomationAction/Messenger/Handler/ExportDataCollectionHandler.php
#	src/Asset/ExecutionEngine/AutomationAction/Messenger/Handler/ExportFolderDataCollectionHandler.php
#	src/DataObject/ExecutionEngine/AutomationAction/Messenger/Handler/ExportDataCollectionHandler.php
#	src/DataObject/ExecutionEngine/AutomationAction/Messenger/Handler/ExportFolderDataCollectionHandler.php
#	src/Element/ExecutionEngine/AutomationAction/Messenger/Handler/ElementUsageReplaceHandler.php
#	src/Element/ExecutionEngine/AutomationAction/Messenger/Handler/PatchFolderHandler.php
@martineiber martineiber modified the milestones: 0.15.17, next Mar 17, 2026
@lukmzig lukmzig marked this pull request as draft March 23, 2026 14:29
@codacy-production
Copy link
Copy Markdown

codacy-production Bot commented Mar 31, 2026

Not up to standards ⛔

TIP This summary will be updated as you push new changes. Give us feedback

…ne-batch-edit-all-assets-fails-with-a-lot-of-items
@sonarqubecloud
Copy link
Copy Markdown

@lukmzig lukmzig merged commit 8d67be8 into 2025.4 Apr 21, 2026
12 of 13 checks passed
@lukmzig lukmzig deleted the 1539-execution-engine-batch-edit-all-assets-fails-with-a-lot-of-items branch April 21, 2026 14:07
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 21, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Execution Engine] Batch edit all assets fails with a lot of items

4 participants